package com.easychat.entity.vo.account.request;

import com.easychat.entity.constants.Constants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @Author: yudaxian
 * @Description: TODO
 * @DateTime: 2024/8/6 19:45
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RegisterReqVO {

    /**
     * 图片验证码
     */
    @NotEmpty
    private String checkCode;

    /**
     * 图片验证码的key
     */
    @NotEmpty
    private String checkCodeKey;

    @NotEmpty
    @Pattern(regexp = Constants.PASSWORD_REGEX)
    private String password;

    /**
     * 昵称
     */
    @NotEmpty
    private String nickName;

    @Email
    private String email;

}
